package com.xdwanj.androidutil.response.k


/**
 * 数据结果
 */
data class DataResult<T>(
    val entity: T,
    val responseStatus: ResponseStatus
)

/**
 * 响应状态
 */
data class ResponseStatus(
    val responseCode: String,
    val success: Boolean,
    val source: Enum<ResultSource> = ResultSource.NETWORK,
)

/**
 * 结果类型
 */
enum class ResultSource {
    NETWORK, DATABASE, LOCAL_FILE
}

